package se.stabby.undersok.model;

/**
 * User: per.segersten
 * Date: 2014-05-21
 */
public class SvarId {

    public final long id;

    public SvarId(long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SvarId svarId = (SvarId) o;

        if (id != svarId.id) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return (int) (id ^ (id >>> 32));
    }

    @Override
    public String toString() {
        return "SvarId{" +
                "id=" + id +
                '}';
    }
}
